package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 环保课程-课时对象 course_schedules
 * 
 * @author zrj
 * @date 2025-07-15
 */
public class CourseSchedules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 课时唯一ID，自增生成 */
    private Long scheduleId;

    /** 关联的课程ID（关联 environmental_courses 表的 course_id ） */
    @Excel(name = "关联的课程ID", readConverterExp = "关=联,e=nvironmental_courses,表=的,c=ourse_id")
    private Long courseId;

    /** 课时名称 */
    @Excel(name = "课时名称")
    private String lessonName;

    /** 课时简介（富文本） */
    @Excel(name = "课时简介", readConverterExp = "富=文本")
    private String lessonDescription;

    /** 单课时时长 */
    @Excel(name = "单课时时长")
    private Long duration;

    /** 课时视频URL */
    @Excel(name = "课时视频URL")
    private String videoUrl;

    public void setScheduleId(Long scheduleId) 
    {
        this.scheduleId = scheduleId;
    }

    public Long getScheduleId() 
    {
        return scheduleId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setLessonName(String lessonName) 
    {
        this.lessonName = lessonName;
    }

    public String getLessonName() 
    {
        return lessonName;
    }
    public void setLessonDescription(String lessonDescription) 
    {
        this.lessonDescription = lessonDescription;
    }

    public String getLessonDescription() 
    {
        return lessonDescription;
    }
    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }
    public void setVideoUrl(String videoUrl) 
    {
        this.videoUrl = videoUrl;
    }

    public String getVideoUrl() 
    {
        return videoUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scheduleId", getScheduleId())
            .append("courseId", getCourseId())
            .append("lessonName", getLessonName())
            .append("lessonDescription", getLessonDescription())
            .append("duration", getDuration())
            .append("videoUrl", getVideoUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
